1bashThis demonstrates pattern matching and extraction using sed in Bash.echo "The quick brown fox jumps over the lazy dog." | sed -n "s|.*\(the .* dog\).*|\1|p"external toolssedpattern matching and extraction